// 获取App实例
var app = getApp();

Page({
  data: {
    search: '',
    groupedFriends: [],
    indexList: [],
    addUserId: '',
    result: {},
    scrollTop: 0
  },

  onLoad: function () {
    var _this = this;
    wx.showLoading({
      title: '正在同步数据',
      mask: true
    });
    _this.getFreinds();
  },

  getFreinds: function () {
    wx.hideLoading();
    app.tim.getFriendList({
      fromAccount: app.gobalData.userId
    }).then(function (res) {
      wx.hideLoading();
      console.log(res)
    })
  }
})